<template>
<!-- 导航 -->
  <div class="home-head">
    <van-icon @click="$router.push('/cate')" name="bars" size="28"/>
    <div class="search" @click="$router.push('/search')">
      <van-icon name="search" size="24px" />
      <span>请输入搜索的内容</span>
    </div>
    <button class="btn">搜索</button>
  </div>
  <!-- /导航 -->

</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
  .home-head{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    .van-icon-search{
      margin: 0 5px;
    }
    .van-icon-bars{
      color: skyblue;
      margin: 0 5px;
    }
    .search{
      display: flex;
      align-items: center;
      flex: 1;
      height: 36px;
      background-color: #fff;
      border-radius: 5px;
      color: rgba(51, 51, 51, 0.322);
    }
    .btn{
    width: 60px;
    height: 35px;
    margin: 0 10px 0 6px;
    background-color: skyblue;
    color: #fff;
    border: none;
    border-radius: 3px;
  }
  }
</style>
